package com.example.buildermode.two;

/**
 * @version 1.0.0
 * @className: HouseBuilder
 * @description: 抽象的建造者
 * @author: zhangjunfa
 * @date: 2022/6/12 10:41
 */
public abstract class HouseBuilder {
    public House house=new House();

    //打地基
    public abstract void buildBasis();

    //砌墙
    public abstract void buildWalls();

    //封装屋顶
    public abstract void roofed();

    //建造房子好后，将产品(房子)返回
    public House buildHouse() {
        return house;
    }
}
